//
//  QMakeInvoiceCell.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/2/22.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QMakeInvoiceCell.h"

@implementation QMakeInvoiceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _codeBtn.layer.cornerRadius = 5;
    _codeBtn.layer.masksToBounds = YES;
    UIColor *color = [QColorUtility colorWithHexString:@"3090e2"];
    [_codeBtn.layer setBorderColor:color.CGColor];
    [_codeBtn.layer setBorderWidth:1];
    [_codeBtn.layer setMasksToBounds:YES];
}
#pragma mark 重写setFrame方法，自己调整cell的frame
- (void)setFrame:(CGRect)frame
{
    
    [super setFrame:frame];
}

- (void)setNewFrameWithTextField{
    
    _textMargin.constant = 120;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)codeBtnAction:(UIButton *)sender {
    if(self.codeBlock){
        self.codeBlock(sender);
    }
    
}


@end
